<template>
	<div
	  class="site-wrapper"
	  element-loading-text="拼命加载中">
	  <template v-if="!loading">
	    <NavBar />
	    <div>
	    <food-show ref="FoodShowRef"></food-show>
	    </div>
	  </template>
	</div>
</template>

<script>
	import NavBar from '../component/NavBar.vue'
	import FoodShow from '../component/FoodShow.vue'
	export default{
		components:{
			FoodShow,
			NavBar
		},
		
		data(){
			return{
				params:''
			}
		},
		
		created() {
			this.init();
		},
		
		methods:{
			init(){
				this.$nextTick(() => {
					this.$refs.FoodShowRef.init(this.$route.params)
				})
			}
		}
	}
</script>

<style>
</style>
